Use markf in one more place
authorAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 09:40:26 +0000 (10:40 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 09:40:26 +0000 (10:40 +0100)
gtk/gtkicontheme.c

index b78de4635eeee3f41b8fde2ed126076cb0e1b6d4..aec4b78b4a4003bfca51ca0175751fb61a9f15f3 100644 (file)
@@ -3606,11 +3606,7 @@ icon_ensure_texture__locked (GtkIconPaintable *icon,
   g_assert (icon->texture != NULL);
 
   if (gdk_profiler_is_running ())
-    {
-      char *message = g_strdup_printf ("%s size %d@%d", icon->filename, icon->desired_size, icon->desired_scale);
-      gdk_profiler_add_mark (before * 1000, (g_get_monotonic_time () - before) * 1000, in_thread ?  "icon load (thread)" : "icon load" , message);
-      g_free (message);
-    }
+    gdk_profiler_add_markf (before * 1000, (g_get_monotonic_time () - before) * 1000, in_thread ?  "icon load (thread)" : "icon load" , "%s size %d@%d", icon->filename, icon->desired_size, icon->desired_scale);
 }
 
 static GdkTexture *